package com.fas.system.mapper;

import com.fas.system.domain.FasFacilitiesTypeSpec;

import java.util.List;

public interface FasFacilitiesTypeSpecMapper {

    List<FasFacilitiesTypeSpec> findByFacilityId(FasFacilitiesTypeSpec fasFacilitiesTypeSpec);

    int addFasFacilitiesTypeSpec(FasFacilitiesTypeSpec fasFacilitiesTypeSpec);

    int editFasFacilitiesTypeSpec(FasFacilitiesTypeSpec fasFacilitiesTypeSpec);

    int deleteFasFacilitiesTypeSpec(String id);

    int enableSpec(FasFacilitiesTypeSpec fasFacilitiesTypeSpec);

    /**
     * 根据设施id查询设施下有多少个规格
     * @param id 设施id
     * @return
     */
    int selectFacilitiesSum(String id);

    /**
     * 根据规格id查询规格名称
     * @param specId
     * @return
     */
    String selectNameBySpecId(String specId);

    int existsSpecName(String specName);
}
